<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <link rel="stylesheet" href="styles/style.css">
        <link rel="stylesheet" href="styles/theme/atom-one-dark.css">
        <title>例子1-JS进阶（二）</title>
    </head>
    <body>
        <pre>
            <code>
                    // 例子1

                    function foo() {
                        var a = 20;
                        var b = 30;

                        function bar() {
                            return a + b;
                        }

                        return bar;
                    }

                    var bar = foo();
                    bar();
            </code>
        </pre>
        <script src="scripts/libs/highlight.pack.js"></script>
        <script src="scripts/1.js"></script>
        <script>
            hljs.initHighlightingOnLoad();
        </script>
    </body>
</html>